/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.indosystem.client.frameutils.comparator;

import java.util.Comparator;
import ru.infosystem.client.data.Student;

/**
 *
 * @author DukeKan
 */
public class SortedByFio implements Comparator {

    @Override
    public int compare(Object o1, Object o2) {
        String str1 = ((Student) o1).getSurname();
        String str2 = ((Student) o2).getSurname();

        return str1.compareTo(str2);
    }
}
